home *** CD-ROM | disk | FTP | other *** search
/ HaCKeRz Kr0nlcKLeZ 1 / HaCKeRz Kr0nlcKLeZ.iso / chibacity / gbbdisk.arj / PROTMODE / PMVIDEO.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-08-03  |  881 b   |  23 lines

  1. ;*******************************************************************************
  2. ;* These are functions needed to do minimal video interface in protected mode. *
  3. ;*******************************************************************************
  4. ;(C) 1995 American Eagle Publications, Inc., All rights reserved!
  5.  
  6. ;This procedure displays the null terminated string at DS:SI on the console.
  7. DISPLAY_MSG:
  8.                 mov     ax,BIOS_SEL
  9.                 mov     es,ax
  10.                 mov     edi,VIDEO_SEG*16
  11.                 push    edi
  12.                 mov     ecx,25*80
  13.                 mov     ax,0F20H
  14.                 rep     stosw
  15.                 pop     edi
  16. DISPLAY_LP:     lodsb
  17.                 or      al,al
  18.                 jz      SHORT DM_EXIT
  19.                 mov     ah,0FH
  20.                 stosw
  21.                 jmp     DISPLAY_LP
  22. DM_EXIT:        ret
  23.